package com.itheima.store.service;

import com.itheima.store.entity.PageBean;
import com.itheima.store.entity.Product;

import java.util.List;

public interface ProductService {
    List<Product> findNew();

    List<Product> findHot();

    Product getProductById(String pid);

    PageBean<Product> getPageInfo(String cid , int currentPage, int pageSize);

    PageBean<Product> findByPage(int currPage, int pageSize);

    boolean addProduct(Product product);

}
